from datetime import datetime


def get_datetime_stamp() -> str:
    return datetime.now().strftime("%Y-%m-%d_%H-%M-%S")


def get_max_dimensions(grid: list, sprite_length: int) -> tuple:
    return (find_max_list(grid) * sprite_length, len(grid) * sprite_length)


def find_max_list(grid: list) -> int:
    length = max([len(i) for i in grid])
    return length - 1 if length > 0 else 0
